package com.rdxy.mult.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.rdxy.mult.entity.Movie;
import com.rdxy.mult.mapper.MovieMapper;
import com.rdxy.mult.service.IMovieService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 人道逍遥
 * @since 2023-06-02
 */
@Service
public class MovieServiceImpl extends ServiceImpl<MovieMapper, Movie> implements IMovieService {

    @Override
    public void updateMovie(Movie movie) {
        LambdaQueryWrapper<Movie> wrapper=new LambdaQueryWrapper<>();
        wrapper.eq(Movie::getId,movie.getId());

        this.baseMapper.updateById(movie);

    }
}
